const Router = require("koa-router");
const main = require("../models");
const router = new Router();
router.get("/home", async ctx => {
    var talbe = await main("member");
    var movies = await talbe.find().toArray();
    await ctx.render("home", { movies })
})
module.exports = router;